package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 数据类型
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpDataType extends Model<JbdpDataType> {

    private static final long serialVersionUID=1L;

    /**
     * 数据类型代码
     */
    @TableId("DATA_TYPE_CODE")
    private String dataTypeCode;

    /**
     * 系统代码
     */
    @TableField("APP_CODE")
    private String appCode;

    /**
     * 数据名称
     */
    @TableField("DATA_NAME")
    private String dataName;

    /**
     * 数据表
     */
    @TableField("DATA_TABLE")
    private String dataTable;

    /**
     * 数据实体
     */
    @TableField("DATA_ENTITY")
    private String dataEntity;

    /**
     * 主键字段
     */
    @TableField("PK_COLUMN")
    private String pkColumn;

    /**
     * 主键属性
     */
    @TableField("PK_PROPERTY")
    private String pkProperty;

    /**
     * 域ID字段
     */
    @TableField("PARTY_COLUMN")
    private String partyColumn;

    /**
     * 域ID属性
     */
    @TableField("PARTY_PROPERTY")
    private String partyProperty;


    public String getDataTypeCode() {
        return dataTypeCode;
    }

    public JbdpDataType setDataTypeCode(String dataTypeCode) {
        this.dataTypeCode = dataTypeCode;
        return this;
    }

    public String getAppCode() {
        return appCode;
    }

    public JbdpDataType setAppCode(String appCode) {
        this.appCode = appCode;
        return this;
    }

    public String getDataName() {
        return dataName;
    }

    public JbdpDataType setDataName(String dataName) {
        this.dataName = dataName;
        return this;
    }

    public String getDataTable() {
        return dataTable;
    }

    public JbdpDataType setDataTable(String dataTable) {
        this.dataTable = dataTable;
        return this;
    }

    public String getDataEntity() {
        return dataEntity;
    }

    public JbdpDataType setDataEntity(String dataEntity) {
        this.dataEntity = dataEntity;
        return this;
    }

    public String getPkColumn() {
        return pkColumn;
    }

    public JbdpDataType setPkColumn(String pkColumn) {
        this.pkColumn = pkColumn;
        return this;
    }

    public String getPkProperty() {
        return pkProperty;
    }

    public JbdpDataType setPkProperty(String pkProperty) {
        this.pkProperty = pkProperty;
        return this;
    }

    public String getPartyColumn() {
        return partyColumn;
    }

    public JbdpDataType setPartyColumn(String partyColumn) {
        this.partyColumn = partyColumn;
        return this;
    }

    public String getPartyProperty() {
        return partyProperty;
    }

    public JbdpDataType setPartyProperty(String partyProperty) {
        this.partyProperty = partyProperty;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.dataTypeCode;
    }

    @Override
    public String toString() {
        return "JbdpDataType{" +
        "dataTypeCode=" + dataTypeCode +
        ", appCode=" + appCode +
        ", dataName=" + dataName +
        ", dataTable=" + dataTable +
        ", dataEntity=" + dataEntity +
        ", pkColumn=" + pkColumn +
        ", pkProperty=" + pkProperty +
        ", partyColumn=" + partyColumn +
        ", partyProperty=" + partyProperty +
        "}";
    }
}
